package com.mallcloud.mall.admin.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.mallcloud.mall.common.core.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@ApiModel(value = "SysUser", description = "用户")
@Data
@TableName(value = "sys_sys_user", autoResultMap = true)
public class SysUser extends BaseModel {
	private static final long serialVersionUID = 1L;

	@TableId(value = "user_id", type = IdType.ASSIGN_ID)
	@ApiModelProperty(value = "主键id")
	private Long userId;

	@ApiModelProperty(value = "用户名")
	private String username;

	@ApiModelProperty(value = "登陆类型")
	private String loginType;

	@ApiModelProperty(value = "密码")
	private String password;

	@JsonIgnore
	@ApiModelProperty(value = "随机盐")
	private String salt;

	@ApiModelProperty(value = "锁定标记")
	private String lockFlag;

	@ApiModelProperty(value = "手机号")
	private String phone;

	@ApiModelProperty(value = "头像地址")
	private String avatar;

	@ApiModelProperty(value = "用户所属部门id")
	private Long deptId;

	@ApiModelProperty(value = "用户所属租户id")
	private Long tenantId;

	@ApiModelProperty(value = "微信openid")
	private String wxOpenid;

	@ApiModelProperty(value = "微信小程序openid")
	private String miniOpenid;

	@ApiModelProperty(value = "QQ openid")
	private String qqOpenid;

	@ApiModelProperty(value = "码云唯一标识")
	private String giteeLogin;

	@ApiModelProperty(value = "开源中国唯一标识")
	private String oscId;

	@ApiModelProperty(value = "昵称")
	private String nickname;

	@ApiModelProperty(value = "姓名")
	private String name;

	@ApiModelProperty(value = "邮箱")
	private String email;

	@ApiModelProperty(value = "卡号")
	private String cardNo;

}
